<%@page import="java.util.Properties"%>
<%@page import="com.office.automate.frontier.utility.Utility"%>
<%@page import="com.office.automate.configuration.property.ConfigurationProperties"%>
<%@page import="com.office.automate.model.authenticate.UserAuthenticator"%>
<% 
	UserAuthenticator currentUserSessionMn2 = (UserAuthenticator) (session.getAttribute("currentSessionUser"));
	if (currentUserSessionMn2 == null) {
		return;
	}
	Properties configSeqProps2 = ConfigurationProperties.getProps(); 
	Utility util2 = new Utility(currentUserSessionMn2.getSecurityLevels());
%>
	<tr>
		<td>
			<div id='cssmenu' align="center">
				<ul>
					<li><a href='/OfficeAutomation/jsp/HomePage.jsp'><span>Home</span></a></li>
					<% if (util2.isFunctionalSecurityAllow(configSeqProps2.getProperty("REGISTER_NEW_EMPLOYEE"))) { %>
					<li><a href='/OfficeAutomation/jsp/employee/RegisterNewEmployee.jsp'><span>Registration</span></a></li>
					<%
						}
					if (util2.isFunctionalSecurityAllow(configSeqProps2.getProperty("ADD_EMPLOYEE_QUALIFICATION"))) { 
					%>
					<li><a href='/OfficeAutomation/jsp/employee/Qualifications.jsp'><span>Qualifications</span></a></li>
					<%
						}
					if (util2.isFunctionalSecurityAllow(configSeqProps2.getProperty("APPLY_FOR_OVERTIME"))) { 
					%>
					<li><a href='/OfficeAutomation/jsp/employee/ApplyForOverTime.jsp'><span>Apply For Overtime</span></a></li>
					<%
						}
					if (util2.isFunctionalSecurityAllow(configSeqProps2.getProperty("APPROVE_OVERTIME"))) { 
					%>
					<li><a href='/OfficeAutomation/jsp/employee/ApproveOverTimeRequest.jsp'><span>Approve Overtime</span></a></li>
					<%
						}
					if (util2.isFunctionalSecurityAllow(configSeqProps2.getProperty("EMPLOYEE_SEARCH"))) { 
					%>
					<li><a href='/OfficeAutomation/jsp/employee/Search.jsp'><span>Search</span></a></li>
					<%
						}
					%>
				</ul>
			</div>
		</td>
	</tr>